<?php
/* @var $this CityAdminController */
/* @var $model City */
/* @var $form CActiveForm */
?>

<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2>
				<i class="icon-edit">
				</i>
				<?php
                    FormHelper::getFormBoxHeader('Tỉnh thành');
                ?>
			</h2>
			<div class="box-icon">
				<?php FormHelper::getBoxIcon(); ?>
			</div>
		</div>
		<div class="box-content">
			<?php $form=$this->beginWidget('CActiveForm', array(
            	'id'=>'city-form',
            	// Please note: When you enable ajax validation, make sure the corresponding
            	// controller action is handling ajax validation correctly.
            	// There is a call to performAjaxValidation() commented in generated controller code.
            	// See class documentation of CActiveForm for details on this.
            	'enableAjaxValidation'=>false,
                'htmlOptions'=>array(
                    'class'=>'form-horizontal'
                ),
            )); ?>
				<fieldset>
					<div class="control-group">
            			<?php echo $form->labelEx($model,'city_name',array('class'=>'control-label','for'=>'typeahead')); ?>
    					<div class="controls">
        					<?php echo $form->textField($model,'city_name',array('size'=>15,'maxlength'=>15,'class'=>'span6 typeahead','id'=>'typeahead')); ?>
                    		<?php echo $form->error($model,'city_name'); ?>
                        </div>
					</div>
					<div class="form-actions">
			            <?php echo CHtml::submitButton($model->isNewRecord ? 'Thêm mới' : 'Lưu thay đổi',array('class'=>'btn btn-primary')); ?>
					</div>
				</fieldset>
	<?php $this->endWidget(); ?>
		</div>
	</div>
	<!--/span-->
</div>